package com.hen.web.henweb.model.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hen.web.henweb.model.enumeration.ArticleStatusEnum;
import lombok.Data;
import static com.baomidou.mybatisplus.annotation.IdType.*;

/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/4/30
 * @function 文章实体类
 */
@Data
@TableName("t_article")
public class Article{

    @TableId(type = ASSIGN_ID)
    private String id; //文章ID

    private String title; //文章标题

    private String authorId; //作者ID

    private int weight; //权重

    private ArticleStatusEnum status; //文章状态

    private String sendTime; //发布时间

    private String content; //文章内容

    private Long readCount; //阅读量

    private Long praiseCount; //点赞数量

    private String collectCount;//收藏数量
}
